<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单列表</title>
    <link rel="stylesheet" href="/static/bootstrap-5.3.0-alpha1/css/bootstrap.css">
</head>
<body>


<button>
    <a href="/fetch_author_list" class="btn btn-primary">拉取作者列表</a>
</button>

<button>
    <a href="/download_all_art" class="btn btn-primary">下载所有up的作品</a>
</button>

<table style="border: 1px solid black;">
    <thead>
    <tr>
        <th>ID</th>
        <th>名称</th>
        <th>头像</th>
        <th>主页地址</th>
        <th>创建时间</th>
        <th>拉取时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {% for item in author_list %}
    <tr>
        <td style="width: 20px;">{{ item.id }}</td>
        <td style="width: 200px;">{{ item.up_name }}</td>
        <td> <img src="{{ item.up_header_image }}" alt="头像" width="50" height="50"/> </td>
        <td>{{ item.up_main_page_url }}</td>
        <td style="width: 200px;">{{ item.create_time }}</td>
        <td style="width: 200px;">{{ item.fetch_art_time }}</td>
        <td>
            <a href="/fetch_all_art_by_author_page_url?name={{ item.up_name }}&page_url={{ item.up_main_page_url }}">下载</a>
        </td>
    </tr>
    {% endfor %}
    </tbody>
</table>

</body>
</html>